package tk.winshu.transaction.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @author Kevin
 * @since 2019/04/06.
 */
@Entity
@Table(name = "t_user")
public class User extends AbstractEntity<Integer> {

    @Column(length = 5)
    private String code;

    private String name;

    private String password;

    public User() {
    }

    public User(String code, String name) {
        this.code = code;
        this.name = name;
        this.password = "password";
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
